﻿using System;
using System.IO;
using log4net;
using log4net.Config;

namespace SharpErp.Common.Util
{
	public class Logger{

	    static Logger(){ 
            //var logCfg = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "log4net.config");
            //XmlConfigurator.ConfigureAndWatch(logCfg);
	    }

		public static ILog GetLog()
		{
		    return LogManager.GetLogger("Logger");
		}

	    public static ILog GetLog(string loggerName)
	    {
		    return LogManager.GetLogger(loggerName);
	    }
	}
}

